home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple II Magazines (PO)
/
Nibble Volume 11, No. 07 (1990-07)(MindCraft Publishing)(Side A).zip
/
Nibble Volume 11, No. 07 (1990-07)(MindCraft Publishing)(Side A).po
/
TE.REZ.txt
< prev
Wrap
Text File
|
1996-12-24
|
16KB
|
427 lines
/*************************************************/
/* */
/* TE.REZ Resource Specifications Listing */
/* by Sandy Mossberg */
/* */
/* APW Compiler */
/* Requires APW Tools and Interfaces, */
/* version 1.1 */
/* */
/* Copyright (C) 1990 */
/* by MindCraft Publ. Corp. */
/* Concord, MA 01742 */
/* */
/*************************************************/
#include "types.rez"
/**************************************************************/
/* */
/* Tool startup resource: */
/* */
/**************************************************************/
resource rToolStartup (0x07FE0001, nocrossbank) {
0xC080, /* 640x200 mode, fastport, shadowing */
{
0x03,0x0300, /* Miscellaneous Tools */
0x04,0x0301, /* QuickDraw II */
0x05,0x0301, /* Desk Manager */
0x06,0x0300, /* Event Manager */
0x07,0x0200, /* Scheduler */
0x09,0x0201, /* Apple Desktop Bus */
0x0A,0x0202, /* SANE */
0x0B,0x0200, /* Integer Math */
0x0C,0x0201, /* Text Tools */
0x0E,0x0301, /* Window Manager */
0x0F,0x0301, /* Menu Manager */
0x10,0x0301, /* Control Manager */
0x12,0x0300, /* QuickDraw Auxiliary */
0x13,0x0300, /* Print Manager */
0x14,0x0301, /* LineEdit Tool Set */
0x15,0x0301, /* Dialog Manager */
0x16,0x0300, /* Scrap Manager */
0x17,0x0300, /* Standard Files */
0x1B,0x0301, /* Font Manager */
0x1C,0x0301, /* List Manager */
0x22,0x0100 /* TextEdit Tool Set */
}
};
/**************************************************************/
/* */
/* Menu resources: */
/* */
/**************************************************************/
resource rMenuBar (0x1) {
{
0x07FE0001, /* Apple menu ref */
0x07FE0002, /* File menu ref */
0x07FE0003 /* Edit menu ref */
}
};
resource rMenu (0x07FE0001) {
1, /* menu ID (Apple menu) */
RefIsResource*MenuTitleRefShift+RefIsResource*ItemRefShift
+fAllowCache, /* flags */
0x07FE0001, /* title ref */
{0x07FE1001} /* item ref array (About) */
};
resource rPString (0x07FE0001) {
"@"
};
resource rMenuItem (0x07FE1001) {
256, /* item ID (About) */
"","", /* keystroke equivalents (none) */
NIL, /* code for checked item (none) */
RefIsResource*ItemTitleRefShift+rMIDivider, /* flags */
0x07FE1001 /* title string ref */
};
resource rPString (0x07FE1001) {
"About Text Editor..."
};
resource rMenu (0x07FE0002) {
2, /* menu ID (File menu) */
RefIsResource*MenuTitleRefShift+RefIsResource*ItemRefShift
+fAllowCache, /* flags */
0x07FE0002, /* title ref */
{0x07FE2001,0x07FE2002,0x07FE2003,0x07FE2004,0x07FE2005,
0x07FE2006,0x07FE2007,0x07FE2005,0x07FE2008}
/* item ref array (all items) */
};
resource rPString (0x07FE0002) {
" File "
};
resource rMenuItem (0x07FE2001) {
258, /* item ID (New) */
"N","n", /* keystroke equivalents */
NIL, /* code for checked item */
RefIsResource*ItemTitleRefShift, /* flags */
0x07FE2001 /* title ref string */
};
resource rPString (0x07FE2001) {
"New"
};
resource rMenuItem (0x07FE2002) {
259, /* item ID (Open) */
"O","o", /* keystroke equivalents */
NIL, /* code for checked item */
RefIsResource*ItemTitleRefShift, /* flags */
0x07FE2002 /* title ref string */
};
resource rPString (0x07FE2002) {
"Open"
};
resource rMenuItem (0x07FE2003) {
255, /* item ID (Close) */
"W","w", /* keystroke equivalents */
NIL, /* code for checked item */
RefIsResource*ItemTitleRefShift+fDisabled, /* flags */
0x07FE2003 /* title ref string */
};
resource rPString (0x07FE2003) {
"Close"
};
resource rMenuItem (0x07FE2004) {
260, /* item ID (Save) */
"S","s", /* keystroke equivalents */
NIL, /* code for checked item */
RefIsResource*ItemTitleRefShift+fDisabled, /* flags */
0x07FE2004 /* title ref string */
};
resource rPString (0x07FE2004) {
"Save..."
};
resource rMenuItem (0x07FE2005) {
300, /* item ID (divider) */
"","", /* keystroke equivalents */
NIL, /* code for checked item */
RefIsResource*ItemTitleRefShift+fDisabled, /* flags */
0x07FE2005 /* title ref string */
};
resource rPString (0x07FE2005) {
"-"
};
resource rMenuItem (0x07FE2006) {
261, /* item ID (divider) */
"","", /* keystroke equivalents */
NIL, /* code for checked item */
RefIsResource*ItemTitleRefShift+fDisabled, /* flags */
0x07FE2006 /* title ref string */
};
resource rPString (0x07FE2006) {
"Page Setup..."
};
resource rMenuItem (0x07FE2007) {
262, /* item ID (divider) */
"P","p", /* keystroke equivalents */
NIL, /* code for checked item */
RefIsResource*ItemTitleRefShift+fDisabled, /* flags */
0x07FE2007 /* title ref string */
};
resource rPString (0x07FE2007) {
"Print..."
};
resource rMenuItem (0x07FE2008) {
257, /* item ID (Quit) */
"Q","q", /* keystroke equivalents */
NIL, /* code for checked item */
RefIsResource*ItemTitleRefShift, /* flags */
0x07FE2008 /* title ref string */
};
resource rPString (0x07FE2008) {
"Quit"
};
resource rMenu (0x07FE0003) {
3, /* menu ID (Edit menu) */
RefIsResource*MenuTitleRefShift+RefIsResource*ItemRefShift
+fDisabled+fAllowCache, /* flags */
0x07FE0003, /* title ref string */
{0x07FE3001,0x07FE3002,0x07FE3003,0x07FE3004,0x07FE3005}
/* item ref array (all items) */
};
resource rPString (0x07FE0003) {
" Edit "
};
resource rMenuItem (0x07FE3001) {
250, /* item ID (Undo) */
"Z","z", /* item chars */
NIL, /* keystroke equivalents */
RefIsResource*ItemTitleRefShift+fDisabled, /* flags */
0x07FE3001 /* title ref string */
};
resource rPString (0x07FE3001) {
"Undo"
};
resource rMenuItem (0x07FE3002) {
251, /* item ID (Cut) */
"X","x", /* keystroke equivalents */
NIL, /* code for checked item */
RefIsResource*ItemTitleRefShift+fDisabled, /* flags */
0x07FE3002 /* title ref string */
};
resource rPString (0x07FE3002) {
"Cut"
};
resource rMenuItem (0x07FE3003) {
252, /* item ID (Copy) */
"C","c", /* keystroke equivalents */
NIL, /* code for checked item */
RefIsResource*ItemTitleRefShift+fDisabled, /* flags */
0x07FE3003 /* title ref string */
};
resource rPString (0x07FE3003) {
"Copy"
};
resource rMenuItem (0x07FE3004) {
253, /* item ID (Paste) */
"V","v", /* keystroke equivalents */
NIL, /* code for checked item */
RefIsResource*ItemTitleRefShift, /* flags */
0x07FE3004 /* title ref string */
};
resource rPString (0x07FE3004) {
"Paste"
};
resource rMenuItem (0x07FE3005) {
254, /* item ID (Clear) */
"","", /* keystroke equivalents */
NIL, /* code for checked item */
RefIsResource*ItemTitleRefShift+fDisabled, /* flags */
0x07FE3005 /* title ref string */
};
resource rPString (0x07FE3005) {
"Clear"
};
/**************************************************************/
/* */
/* Alert string resource: */
/* */
/**************************************************************/
resource rAlertString (0x07FE0001) {
"0" /* use custom coords */
"\0d060\0d000\0d160\0d000\0d140\0d000\0d224\0d001"
/* custom coords */
"0/" /* no icon, separator */
TBCenterJust /* centered */
TBStyleBold /* bold style */
TBEndOfLine /* CR */
"Text Editor" /* title text */
TBStylePlain /* standard style */
"\n\nby Sandy Mossberg\n" /* 2CR, credit text */
"(c)1990 by MindCraft Publ. Corp." /* CR, credit text */
"/^#0\0x00" /* separ, OK, terminator */
};
/**************************************************************/
/* */
/* Window resources: */
/* */
/**************************************************************/
resource rWindParam1 (0x1001) {
fTitle+fClose+fZoom+fMove+fVis+fAllocated+fHilited,
/* frame description */
0x1002, /* title ref */
NIL, /* refCon */
{0,0,0,0}, /* zoom size (full screen */
0x1003, /* color table ref */
{0,0}, /* origin */
{0,0}, /* data size */
{0,0}, /* max height/width */
{0,0}, /* vert/horiz scroll arrow values */
{0,0}, /* vert/horiz page values */
NIL, /* info bar refCon */
NIL, /* info bar height */
{40,40,140,300}, /* initial coords */
inFront, /* plane */
0x2001, /* ref to rControlList */
0x0A02 /* refs are resources, single item */
};
resource rPString (0x1002) {
" Untitled "
};
resource rWindColor (0x1003) {
0x0000, /* frame */
0x0F00, /* title string and inact title bar */
0x020F, /* active title bar (racing stripes) */
0x00F0, /* grow box and alert's middle outline */
0x00F0 /* info bar and alert's inside outline */
};
resource rWindParam1 (0x1101) {
fTitle+fClose+fZoom+fMove+fVis+fAllocated+fHilited,
/* frame description */
0x1102, /* title ref */
NIL, /* refCon */
{0,0,0,0}, /* zoom size (full screen */
NIL, /* color table ref (default) */
{0,0}, /* origin */
{0,0}, /* data size */
{0,0}, /* max height/width */
{0,0}, /* vert/horiz scroll arrow values */
{0,0}, /* vert/horiz page values */
NIL, /* info bar refCon */
NIL, /* info bar height */
{70,320,190,600}, /* initial coords */
inFront, /* plane */
0x2101, /* ref to rControlList */
0x0A02 /* refs are resources, single item */
};
resource rPString (0x1102) {
" Heinlein "
};
/**************************************************************/
/* */
/* Control resources: */
/* */
/**************************************************************/
resource rControlTemplate (0x2001) {
1, /* ID */
{0,0,0,0}, /* coords (fill window) */
editTextControl {{ /* editText defProc */
ctlVisible, /* flags */
fCtlCanBeTarget+fCtlWantsEvents+fCtlProcNotPtr
+fCtlTellAboutSize+fCtlIsMultiPart, /* more flags */
NIL, /* Refcon */
fSingleFormat+fSmartCutPaste+fGrowRuler, /* text flags */
{0xFFFF,0xFFFF,0xFFFF,0xFFFF}, /* indent rect (default) */
0xFFFFFFFF, /* create vert scroll bar */
NIL, /* vert scrolling (default) */
NIL,NIL, /* horiz scrolling (must be 0) */
NIL, /* style ref (default) */
NIL, /* text descriptor (no text) */
NIL, /* text ref */
NIL }} /* text length */
};
resource rControlTemplate (0x2101) {
1, /* ID */
{0,0,0,0}, /* coords (fill window) */
editTextControl {{ /* editText defProc */
ctlVisible, /* flags */
fCtlCanBeTarget+fCtlWantsEvents+fCtlProcNotPtr
+fCtlTellAboutSize+fCtlIsMultiPart, /* more flags */
NIL, /* Refcon */
fSingleFormat+fSmartCutPaste+fGrowRuler, /* text flags */
{0xFFFF,0xFFFF,0xFFFF,0xFFFF}, /* indent rect (default) */
0xFFFFFFFF, /* create vert scroll bar */
NIL, /* vert scrolling (default) */
NIL,NIL, /* horiz scrolling (must be 0) */
NIL, /* style ref (default) */
dataIsTextBlock+RefIsResource*8, /* text descriptor */
0x2102, /* text ref */
NIL }} /* text length */
};
resource rText (0x2102) {
"\n\tThe two highest achievements of the human mind are "
"the twin concepts of \"loyalty\" and \"duty.\" Whenever "
"these twin concepts fall into disrepute - get out of there "
"fast! You may possibly save yourself, but it is too late to "
"save the society. It is doomed.\n\n"
"\tIn a mature society, \"civil servant\" is semantically "
"equivalent to \"civil master.\"\n\n"
"\tWhat are the facts? Again and again and again - what "
"are the facts? Shun wishful thinking, ignore divine "
"revelation, forget \"what the stars foretell,\" avoid "
"opinion, care not what the neighbors think, never mind the "
"unguessable \"verdict of history\" - what are the facts, and "
"to how many decimal places? You pilot always into an unknown"
" future; facts are your single clue. Get the facts!\n\n"
"\tA motion to adjourn is always in order.\n\n"
"\tYou can have peace. Or you can have freedom. Don't "
"ever count on having both at one time.\n\n"
"\tAnyone who cannot cope with mathematics is not fully "
"human. At best he is a tolerable subhuman who has learned to"
" wear shoes, bathe, and not make messes in the house.\n\n"
"\tNever underestimate the power of human stupidity.\n\n"
"\tWriting is not necessarily something to be ashamed of - "
"but do it in private and wash your hands afterwards.\n\n"
"\tTANSTAAFL. [There ain't no such thing as a free lunch.]\n\n"
"--Excerpts from the notebook of Lazerus Long\n"
"--Robert A. Heinlein"
};